<?php
namespace Addons;

use Common\Controller\BaseController;

class Module extends BaseController {

    protected $template = '';

    public function __construct() {
        parent::__construct();
        $this->template = 'Addons/' . MODULE . '/View/';
    }

    // 显示模板重载
    public function make($tpl = '') {
        $tpl = $tpl ? $tpl : I('ac', '');
        $tplPath = 'Addons/' . MODULE . '/View/' . $tpl . '.html';
        $this->display($tplPath);
    }

}